package tech.aistar.day12;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/3/23 10:29 上午
 */
public class Student {
    private Long id;

    private String name;

    private Gender gender;

    public Student() {
    }

    public Student(Long id, String name, Gender gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Student{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", gender=").append(gender.getSign());
        sb.append('}');
        return sb.toString();
    }
}
